@Authors: Silva Bautista Alexis Eduardo.
@Suma y imprimir pares del 15 al 20.
@Input file: problema33.s
@Output:

.section	.data
sum:
    .ascii " "
.section	.text
.globl _start

_start:

mov r0, $15
mov %r1, $16
mov %r2, $17
mov %r3, $18
mov %r4, $19
mov %r5, $20

add %r6,%r0,%r1
@add %r10,%r1,%r2
@add %r11,%r2,%r3
@add %r12,%r3,%r4
@add %r13,%r4,%r5

@mov r0,r13
add r6, r6, $48

ldr r9, =sum
str r6, [r9]

mov r0, $1
ldr r1, =sum 
mov r2, $4
mov r7, $4
swi 0 

@mov r0, $1
@ldr r1, =msg     @pointer string to be printed in r1
@ldr r2, =len     @length of string in r2
@mov r7, $4       @prepare to output to console 
@swi $0           @wake kernel

/*
MOV R8, $8
ADD R8, R8, $48

LDR R9, =num
STR R8, [R9]

MOV R0, $1
LDR R1, =num
MOV R2, $20
MOV R7, $4
SWI 0 */

mov r7, $1         	
svc $0  

.end
